<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name:  Category Model
*
* Author:  Ervin R. Musngi
*
*/

class Category_m extends DataMapperExt
{
	var $table = 'categories';
	
	var $has_many	= array(
							'subjects'	=>	array(
									'class'			=> 'subjects_m',
									'other_field'	=> 'category',
									'join_self_as' 	=> 'category',
									'join_other_as' => 'subject',
									'join_table'	=> 'subjects'
							),
					);
	
	public function __construct($id = NULL)
	{
		parent::__construct($id);
	}
}